package com.xupt.ttms.controller;

import com.xupt.ttms.service.SysMenuService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/login")
@CrossOrigin
public class LoginController {
    @Resource
    private SysMenuService sysMenuService;

    @GetMapping("/init")
    public Map<String, Object> menu() {
        return sysMenuService.menu();
    }
}